<%@ page language="java" pageEncoding="utf-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<head>
    <title> 首页页面管理表</title>
    <link href="manage/css/table.css" rel="stylesheet" type="text/css"/>
    <meta http-equiv="pragma" content="艺博客，装点生活">
    <meta http-equiv="cache-control" content="艺博客为书画爱好者提供服务平台">
    <link href="manage/css/table.css" rel="stylesheet" type="text/css"/>
    <link rel="shortcut icon" href="${pageContext.request.contextPath}/favicon.ico" type="text/css"/>
    <style>
        .tt {
            margin: 0 auto;
            border-collapse: collapse;
            width: 80%;
        }

        .tt tr th, .tt tr td {
            border: 2px solid #f0f0f0;
            text-align: center;
            padding: 3px;
            margin: 5px;
            font: 14px/25px "微软雅黑";

        }

        .tt tr:nth-child(odd) {
            background-color: #fbfbfb;

        }

        .tt tr:nth-child(even) {
            background-color: #fff;
        }

        .tt tr:first-child {
            background-color: #E5E5E5;
        }

        .tt tr:not(:first-child):hover {
            background-color: #FFEC8B;
        }


    </style>


</head>
<body>
<div class="lj">
    <h2 style="text-align:center;padding-top:20px;">首页轮播图管理</h2>
    <div class="clear" style="width:100%;">
        <div class="left">

            <table class="tt">

                <tr>
                    <th style="width: 100px">名称</th>
                    <th>图片</th>
                    <th>删除</th>
                    <!--   <form action="/hheadpage.do" method="post" > -->
                </tr>
                <c:forEach items="${listCarousel}" var="i">
                    <tr>
                        <td style="width: 150px">${i.c_name}</td>
                        <td><img src="${i.c_image}" height="100" width="100"></td>
                        <td><a href="hheadpage2?headimage=${i.id}"><span class="bigalt">删除</span></a>
                        </td>
                    </tr>
                </c:forEach>
                <tr>
                    <!--  </form> -->
                    <td colspan="100">
                        <!--  multipart/form-data or multipart/mixed stream, -->
                        <form action="upload.do" method="post" enctype="multipart/form-data">
                            添加轮播图 <input id="name" type="file" name="fileee" multiple/><!--  multiple  -->
                            <input type="submit" class="button" value="确认添加"/>
                        </form>

                    </td>

                </tr>

            </table>
        </div>
    </div>
</div>
</body>
</html>